#include "../include/user_config.h"
#include "../include/saver.h"

UserConfig user_config;

UserConfig::UserConfig(): file_path("Database\\UserConfig.yaml")
{
	
}

UserConfig::~UserConfig()
{

}

void UserConfig::getParam()
{
	disk::getParamYaml(this, file_path);
}

void UserConfig::saveParam()
{
	disk::saveParamYaml(this, file_path);
}

void UserConfig::updateEndDate()
{
	end_date.Year = update_stamp.Year;
	end_date.Month = update_stamp.Month;
	end_date.Day = update_stamp.Day;
}

void UserConfig::updateEndDate(StampStruct new_stamp)
{
	end_date.Year = new_stamp.Year;
	end_date.Month = new_stamp.Month;
	end_date.Day = new_stamp.Day;
}